 class User {
     constructor(el) {
         this.el = document.querySelector(el)
         this.btn = this.el.querySelector('button')
         this.spans = this.el.querySelectorAll('span')
         this.score = 0;
         this.m = 0;
         this.id = null
         this.find = true;
         this.bind()
     }
     bind() {
         this.btn.addEventListener('click', (e) => {
             if (this.find) {
                 this.actions()
                 this.find = !this.find
             } else {
                 clearInterval(this.id)
                 this.find = !this.find
             }
         })
     }
     actions() {
         this.id = setInterval(() => {
             if (this.score >= 60) {
                 ++this.m
                 this.spans[0].innerHTML = this.padStatr(this.m);
                 this.score = 0
             }
             // this.score++
             ++this.score
             this.spans[2].innerHTML = this.padStatr(this.score)
             // console.log(this.spans[0].innerHTML)

         }, 1)
     }
     padStatr(number) {
         return number.toString().padStart(2, '0')
     }
 }
 export {
     //起别名
     User as js
 }

 export default {
     //起别名
     User
 }